package com.fingard.dsp.bank.reqrespobj.virtual;

import com.fingard.text.StringHelper;

import java.util.HashMap;
import java.util.Iterator;


public class RetAtsVirtualOrder {
	public String respCode;
    public String respInfo;
    public String rdSeq;
    public String transState;
    /**
     * 虚拟户编号
     */
    public String virtualAccount;

    
    public HashMap<String,String> customHashMap;
    
    public HashMap<String,String> getRetAtsHashMap(){
    	HashMap<String,String> retHash = new HashMap<String,String>();
    	retHash.put("RespCode", respCode);
    	retHash.put("RespInfo", respInfo);
    	retHash.put("RdSeq", rdSeq);
        retHash.put("VirtualAccount", virtualAccount);
    	if (StringHelper.hasAnyChar(transState)) {
    		retHash.put("TransState", transState);
    	}

    	if(customHashMap != null){
    		Iterator<String> iter = customHashMap.keySet().iterator();
    		while (iter.hasNext()) {
    			String eachKey = iter.next();
    			retHash.put(eachKey, customHashMap.get(eachKey));
    		}
    	}
    	return retHash;
    }
}
